<template>
	<view class="setting_content">
		<view class="report_main_">
			<view class="report_mains flex aic jcsb" v-for="(item,index) in datas" :key="index" @click="detail(item)">
				<view class="flex report_mains_left flex aic">
					<text class="fonts14 fontz ">{{item.name}}</text>
				</view>
				<image src="@/static/r1.png" mode=""></image>
			</view>
			<view class="position_footer flex aic jcsb" style="margin-top: 20px;" @click="unlogin()">
				<u-button  class="" style="width: 100%;" type="info">退出登录</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				datas: [{
						name: "账号管理",
						type: "0",
						url: "/pages/my/setting/admin/admin"
					},
					{
						name: "修改密码",
						type: "1",
						url: "/pages/my/setting/change/change"
					}
				]
			};
		},
		methods: {
			detail(item) {
				uni.navigateTo({
					url: item.url
				})
			},
			unlogin() {
				uni.removeStorageSync('userInfoData_') //移除登录信息
				uni.removeStorageSync('myResume') //移除登录信息
				uni.removeStorageSync('my_userInfo') //移除登录信息
				setTimeout(() => {
					uni.navigateTo({
						url: "/pages/login/login"
					})
				}, 1000)
			}
		}
	}
</script>

<style lang="scss">
	.setting_content {
		width: calc(100% - 24px);
		padding: 10px 12px;
		height: calc(100vh - 64px);
		background: #F8F9FA;

		.report_mains {
			padding: 0px 14px;
			height: 60px;
			background: #FFFFFF;
			border-radius: 0px 0px 0px 0px;
			opacity: 1;

			.report_mains_left {
				image {
					width: 16px;
					height: 16px;
					margin-right: 8px;
				}
			}

			image {
				width: 20px;
				height: 20px;
			}
		}

		.position_footer {
			height: 40px;
			z-index: 1;
			position: absolute;
			bottom: 0;
			// background: #ffffff;
			// box-shadow: 0px -1px 3px 0px rgba(48, 48, 48, 0.0592);
			// border-radius: 0px 0px 0px 0px;
			// opacity: 1;
			width: calc(100vw - 24px);
			padding: 12px;
			left: 0px;

			.blue_btn {
				background: #2F6CBC;
				border: 1px solid #2F6CBC;
			}
		}

	}
</style>
